//模块的构造方法
function Tariff(rs) {
	this.id=rs.id;
	this.start=rs.start;
	this.end=rs.end;
	this.img=rs.img;
	this.vs=rs.vs;
}
//定义表名
Tariff.entityName = 'tariff';
//主键
Tariff.entityIndex = 'id';
//redis过期时间
Tariff.entityExpiration = 60*5;
Tariff.entityCreated = 'created';
//属性
Tariff.propNamesAsArray = [ 'id', 'start', 'end', 'img','vs' ];
//获得class用于redis删除对象
Tariff.prototype.getClass = function() {
    return Tariff;
};
//获得表名
Tariff.prototype.getEntityName = function() {
    return Tariff.entityName;
};
//获得主键
Tariff.prototype.getEntityIndex = function() {
    return Tariff.entityIndex;
};
//获得过期时间
Tariff.prototype.getEntityExpiration = function() {
    return Tariff.entityExpiration;
};

Tariff.prototype.getEntityCreated = function() {
    return Tariff.entityCreated;
};
//获得属性名称列表
Tariff.prototype.getPropNamesAsArray = function() {
    return Tariff.propNamesAsArray;
};
//获得属性名称列表
Tariff.prototype.asArray = function() {
    return [
        this.id,
        this.start,
        this.end,
        this.img,
        this.vs
    ];
};
module.exports.Tariff = Tariff;